<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>营业厅用户</title>
		<link type="text/css" rel="stylesheet" href="<%=basePath%><s:property value="#session.themeStyle.mainCss" default="Skin/PM/LightBlue/main.css"/>" />
		<link rel="stylesheet" href="<%=basePath %>css/zTreeStyle/zTreeStyle.css" type="text/css" />
		<script type="text/javascript" src="<%=basePath %>js/jquery.js"></script>
		<script src="<%=basePath%>js/store.js" type="text/javascript"></script>
		<script type="text/javascript" src="<%=basePath %>js/ztree/jquery.ztree.core-3.5.js"></script>
		<script type="text/javascript" src="<%=basePath %>js/ztree/jquery.ztree.excheck-3.5.js"></script>
		<style type="text/css">
			
			li{
				width: 300px;
			}
	</style>
		<script type="text/javascript">
		function delUser(deptUserId){
			var deptId = $("#deptId").val();
    		window.returnValue="2,"+deptId+","+deptUserId;
    		window.close();
		}
		function addDeptUser(deptUserId){
			var deptId = $("#deptId").val();
            window.returnValue="1,"+deptId+","+deptUserId;
    		window.close();
		}
		</script>
	</head>
<body style="background-color: #fff;width: 350px;height: 390px">
	<div style="height: 410px;border: red 0px solid;">
		<div style="text-align:center;width: 350px;height: 190px;margin-top: 15px;border-bottom: #3497cf 1px solid;overflow-y: scroll;overflow-x:hidden;"> 
			<s:iterator value="deptUserDtos" status="status" >
			<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
				<tr style="height: 25px;">
					<td width="30%" align="center">
						<s:property value="userName" />
					</td>
					<td width="35%" align="center">
						<s:property value="userDept" />
					</td>
					<td width="35%" align="center">
						<img height="20" id="delIp" style="cursor: pointer;vertical-align: middle;margin-left:5px " onclick="delUser('<s:property value="pkId" />')" src="<%=basePath %>images/cross.gif"/>
					</td>
				</tr>
			</table>
			</s:iterator>
		</div> 
		<div style="text-align:center;width: 350px;height: 200px;border: red 0px solid;overflow-y: scroll;overflow-x:hidden;border-bottom: #3497cf 1px solid;"> 
		<s:iterator value="userBeanAll" status="status" >
		<table cellpadding="0" cellspacing="0" border="1" style="width: 100%;">
			<tr style="height: 25px;">
				<td width="30%" align="center">
					<s:property value="userName" />
				</td>
				<td width="35%" align="center">
					<s:property value="deptInfo" />
				</td>
				<td width="35%" align="center">
					<a href="###" onclick="addDeptUser(<s:property value="pkId" />);" style="text-decoration: none;color: #E9621E;">添加</a>
				</td>
			</tr>
		</table>
		</s:iterator>
		</div> 
	</div>
	<input id="deptId" type="hidden" value="${deptId}"/>
</body>
</html>